default: once

paper.dvi: paper.tex 
	latex paper

paper.bbl: huang.bib
	bibtex paper

once: *.tex huang.bib lu.bib
	latex paper
	dvips -j0 -Ppdf -Pdownload35 -G0 -t letter paper.dvi -o paper.ps
	ps2pdf -dEmbedAllFonts=true paper.ps paper.pdf
	evince paper.pdf &


pdf: *.tex huang.bib lu.bib
	latex paper	
	bibtex paper
	latex paper
	latex paper
	dvips -j0 -Ppdf -Pdownload35 -G0 -t letter paper.dvi -o paper.ps
	ps2pdf -dEmbedAllFonts=true paper.ps paper.pdf
	evince paper.pdf &

clean:
	rm -f paper.pdf paper.ps  *.dvi *.bbl *.aux *.log *.bak
